#ifndef __VIDEO__THREAD__
#define __VIDEO__THREAD__

#include <cv.h>
#include <cxcore.h>
#include <wx/thread.h>
#include <wx/frame.h>
#include <sockclient.h>

class VideoThread : public wxThread {

public:

	VideoThread(wxFrame * mainFrame, SocketClient * client);
	virtual ~VideoThread();
	virtual ExitCode Entry();
	virtual void OnExit();
	IplImage * GetImage() const;

protected:

	char * readBuffer;
	IplImage * image;
	wxFrame * frame;
	SocketClient * client;
};

#endif //__VIDEO__THREAD__
